package logic;
public class PutchunkMessage {
	private String fileID;
	private int chunkNo;
	private long date;
	public PutchunkMessage(String fileID,int chunkNo)
	{ 
		this.fileID=fileID;
		this.chunkNo=chunkNo;
		this.setDate(System.currentTimeMillis());
	}
	public int getChunkNo() {
		return chunkNo;
	}
	public void setChunkNo(int chunkNo) {
		this.chunkNo = chunkNo;
	}
	public String getFileID() {
		return fileID;
	}
	public void setFileID(String fileID) {
		this.fileID = fileID;
	}
	public long getDate() {
		return date;
	}
	public void setDate(long date) {
		this.date = date;
	}
	public boolean equals(Object o)
	{
		if(this.getFileID().equals(((PutchunkMessage)o).getFileID()) && this.chunkNo==((PutchunkMessage)o).getChunkNo() )
				return true;
		return false;
	}
}
